<?php
class SSHException extends Exception {
	const SSH_HOSTKEY_FAIL = 1001;
	const SSH_CONNECT_FAIL = 1002;
	const SSH_AUTHENTICATE_FAIL = 1003;
	
	public function __construct($code) {
		$message = "SSH_ERR_{$code}";
		parent::__construct($message, $code);
	}
}
?>